package com.ljyhhh.SmartCity.activity.fragment.brokenLine

import android.R
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.github.mikephil.charting.charts.LineChart
import com.github.mikephil.charting.data.Entry
import com.github.mikephil.charting.data.LineData
import com.github.mikephil.charting.data.LineDataSet
import com.github.mikephil.charting.utils.ColorTemplate
import com.ljyhhh.SmartCity.activity.fragment.brokenLine.chart.MyBarChart
import com.ljyhhh.SmartCity.activity.fragment.brokenLine.chart.MyLineChart
import com.ljyhhh.SmartCity.activity.fragment.brokenLine.chart.MyPieChart
import kotlinx.android.synthetic.main.activity_broken_line.*


class BrokenLine : Fragment() {
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        return inflater.inflate(com.ljyhhh.SmartCity.R.layout.activity_broken_line,container,false)
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)

        button_line_chart.setOnClickListener {
            startActivity(Intent(context,MyLineChart::class.java))
        }
        button_pir_chart.setOnClickListener {
            startActivity(Intent(context,MyPieChart::class.java))
        }
        button_bar_chart.setOnClickListener {
            startActivity(Intent(context,MyBarChart::class.java))
        }




    }

}